<div class="breadcrumbs ace-save-state" id="breadcrumbs">
	<ul class="breadcrumb">
		<li>
			<i class="ace-icon fa fa-home home-icon"></i>
			<a th:href="@{/index}">Home</a>
		</li>

		<li class="active" th:if="${nav ne null}"><span th:text="${nav}"></span></li>
		
		<li>欢迎	<span th:if="${session.userSession ne null}" th:text="${session.userSession.username}">游客</span>登录<strong>房屋管理系统！</strong>&nbsp;</li>
	</ul><!-- /.breadcrumb -->

	<div class="nav-search" id="nav-search">
		<form class="form-search" id="searchForm" name="searchForm" action="search" method="post" th:action="@{/search}" >
			<span class="input-icon">
				<input type="text" placeholder="Search ..." class="nav-search-input" name="search" 
					id="nav-search-input" autocomplete="off"/>
				<i class="ace-icon fa fa-search nav-search-icon"></i>
			</span>
		</form>
	</div><!-- /.nav-search -->
</div>
<script>
$('#nav-search-input').keypress(function(event){	
	var keynum = (event.keyCode ? event.keyCode : event.which);	
	if(keynum === '13'){
		$("#searchForm").submit();
	}	
});	
</script>